package com.kws.merchant.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author : zhangbenting
 * @date : 2024/11/20 11:03
 * @Version: 1.0
 */
@Data
@TableName("tb_merchant_score")
public class MerchantScoreEntity implements Serializable {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键ID")
    private Long id;

    /**
     * 商家ID
     */
    @ApiModelProperty("商家ID")
    private Long merchantId;

    /**
     * 店铺分数
     */
    @ApiModelProperty("店铺分数")
    private Double shopScore;

    /**
     * 评价分数
     */
    @ApiModelProperty("评价分数")
    private Double remarkScore;

    /**
     * 物流分数
     */
    @ApiModelProperty("物流分数")
    private Double deliveryScore;

    /**
     * 售后分数
     */
    @ApiModelProperty("售后分数")
    private Double afterSaleScore;

    /**
     * 咨询分数
     */
    @ApiModelProperty("咨询分数")
    private Double consultScore;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
